package server.container;

import server.pojo.Request;
import server.pojo.Response;

import java.util.LinkedList;
import java.util.List;

public class MyServer implements BaseContainer {

    List<MyService> list = new LinkedList<>();

    public void add(MyService myService) {
        list.add(myService);
    }

    public void start() {
        list.forEach(MyService::start);
    }

}
